package com.ocom.nettyxf.client;


import com.ocom.common.constant.SrvpAccessDeviceUrl;
import com.ocom.common.resp.RespMachMessage;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @ProjectName: ocom30
 * @Package: com.ocom.srvshttp.feignclient
 * @ClassName: SrvpAccessDeviceClient
 * @Author: OCOM
 * @Description: 远程调用门禁服务
 * @Date: 2021/12/2 17:06
 * @Version: 3.0
 */
@Component
@FeignClient(name = "srvpaccess")
public interface SrvpAccessDeviceClient {
    // 更改密钥状态（changeKeyState）
    @PostMapping(value = SrvpAccessDeviceUrl.URLP_ACCESSDEVICE_changeKeyState)
    RespMachMessage changeKeyState(@RequestParam("companyId")Long companyId, @RequestParam("machNo")String machNo,@RequestParam("jobId")String jobId,@RequestParam("deviceType") Integer deviceType);

    @GetMapping(value = SrvpAccessDeviceUrl.URLP_ACCESSDEVICE_getDecodeKey)
    RespMachMessage getDecodeKey(@RequestParam("companyId")Long companyId,@RequestParam("machNo") String machNo,@RequestParam("deviceType") Integer deviceType);
}